package io;

import org.junit.jupiter.api.Test;

import java.io.File;
import java.io.IOException;

/**
 * @Author: WaveKing
 * @Description: TODO
 * @Date: Created in 18:39 2023/11/23
 * @Modified By:
 */
public class test01 {
    @Test
    public void testIo(){
        String prantPath = "d:\\";
        String sonPath = "a.txt";
        File file = new File(prantPath, sonPath);
        try {
            file.createNewFile();
            System.out.println("创建成功");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}


